FROM edwinhuish/nginx-acme:1.18

ARG TZ=Asia/Shanghai

ARG CTN_PROJECT_DIR=/www

RUN ln -snf /usr/share/zoneinfo/${TZ} /etc/localtime && \
  echo ${TZ} > /etc/timezone && \
  usermod -u 1000 nginx && groupmod -g 1000 nginx && \
  mkdir -p ${CTN_PROJECT_DIR} && \
  chown nginx:nginx ${CTN_PROJECT_DIR} -R

WORKDIR ${CTN_PROJECT_DIR}
